package satir.card.factory;

import org.json.*;

import satir.card.Card;

/**
 * A factory for creating Card objects.
 * 
 * @version 2.0 March 2012
 * @author Chris Chan
 */
public abstract class CardFactory {
	
	/** The card json. */
	protected JSONObject cardJson;

	/**
	 * Creates a new Card object.
	 *
	 * @return the card
	 */
	abstract public Card createCard();
	
	/**
	 * Sets the card detail.
	 *
	 * @param cardJson the new card detail
	 */
	public void setCardDetail(JSONObject cardJson){
		this.cardJson = cardJson;
	}
}